if (setStrokeParams(context, attr, alpha))
{
if (context.isSelection())
{
context.stroke();
}
else
{
doApplyShadow(context, attr);
context.stroke();
}
}
context.restore();
{
if (setStrokeParams(context, attr, alpha, filled))
{
if ((attr.hasShadow()) && (false == context.isSelection()))
{
doApplyShadow(context, attr);
}